package isvb.module;

import com.google.inject.Inject;
import com.google.inject.Provider;
import isvb.impl.model.OrderIsvB;
import org.dormi.learn.promotion.model.Member;
import org.dormi.learn.promotion.model.Order;
import org.dormi.learn.promotion.model.OrderLine;

import java.util.Arrays;
import java.util.List;

/**
 * add description here
 *
 * @author : dormi330
 * @version : 1.0
 */
public class OrderProvider implements Provider<Order> {

    @Inject OrderLine orderLine;
    @Inject Member member;

    @Override
    public Order get() {
        List<OrderLine> lines = Arrays.asList(orderLine);
        return new OrderIsvB(member, lines);
    }
}
